<?php

namespace Plugins\UEditorPlus;

use App\Common\Interfaces\PluginsInstallInterface;
use App\Common\Util\PluginsInstallHelper;
use Sc\Util\HtmlStructure\Theme\ElementUI\FormItemEditorTheme;

/**
 * Class Install
 */
class Install implements PluginsInstallInterface
{

    /**
     * @return void
     * @throws \ReflectionException
     */
    public static function run(): void
    {
        PluginsInstallHelper::addProxy(FormItemEditorTheme::class, __DIR__ . '/Theme/FormItemEditorTheme.php');

        PluginsInstallHelper::batchAddResource(__DIR__ . '/resource', '/static/ueditor');
    }
}